package de.hatraco.funderberg.blackjack.data;

import java.awt.Dimension;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Toolkit;
import java.awt.Image;
import java.util.ArrayList;
import java.util.List;

import javax.swing.ImageIcon;

public class GraphicsBlackJack {
	
	//Singleton Pattern: Stellt sicher, dass nur eine Instanz von GraphicsBlackJack existiert
	private static GraphicsBlackJack instance = new GraphicsBlackJack();
	
	public static GraphicsBlackJack getInstance() {
		if(instance == null) {
			instance = new GraphicsBlackJack();
		}
		return instance;
	}
	
	private Dimension dim;
	private int dimX;
	private int dimY;
	private int screens;	
	private double resizefactor;
	
	private List<ImageIcon> images_main = new ArrayList<ImageIcon>();
	private List<ImageIcon> images_dialogs = new ArrayList<ImageIcon>();
	private List<ImageIcon> mainbgs = new ArrayList<ImageIcon>();
	private List<ImageIcon> cards = new ArrayList<ImageIcon>();
	
	//Main Backgrounds
	private ImageIcon bgdef;
	private ImageIcon bgp1;
	private ImageIcon bgp2;
	private ImageIcon bgp3;
	private ImageIcon bgp4;
	
	//Dialog Backgrounds
	private ImageIcon bgdialogdef;
	private ImageIcon bgstart;
	private ImageIcon bgrules;
	private ImageIcon bgstartstack;
	private ImageIcon bgoutofstack;
	
	//Buttons MainView
	private ImageIcon btnewcard;
	private ImageIcon btdouble;
	private ImageIcon btbet;
	private ImageIcon btstand;
	private ImageIcon btsplit;
	private ImageIcon btdeal;
	private ImageIcon bthelp;
	private ImageIcon btoptions;
	
	//Buttons Dialogs
	private ImageIcon btback;
	private ImageIcon bt1;
	private ImageIcon bt2;
	private ImageIcon bt3;
	private ImageIcon bt4;
	private ImageIcon btplus1;
	private ImageIcon btplus10;
	private ImageIcon btplus100;
	private ImageIcon btminus1;
	private ImageIcon btminus10;
	private ImageIcon btminus100;
	private ImageIcon btmax;
	private ImageIcon btmin;
	private ImageIcon btok;
	private ImageIcon btgo;
	private ImageIcon btstartgame;
	private ImageIcon btyes;
	private ImageIcon btno;
	private ImageIcon btnexplayer;
	private ImageIcon btnexround;
	private ImageIcon btnewgame;
	private ImageIcon btquitgame;
	
	//Cards	
	private ImageIcon c1;
	private ImageIcon c2;
	private ImageIcon c3;
	private ImageIcon c4; 
	private ImageIcon c5;
	private ImageIcon c6;
	private ImageIcon c7;
	private ImageIcon c8;
	private ImageIcon c9;
	private ImageIcon c10;
	private ImageIcon c11;
	private ImageIcon c12;
	private ImageIcon c13;
	private ImageIcon c14;
	private ImageIcon c15;
	private ImageIcon c16;
	private ImageIcon c17;
	private ImageIcon c18;
	private ImageIcon c19;
	private ImageIcon c20;
	private ImageIcon c21;
	private ImageIcon c22;
	private ImageIcon c23;
	private ImageIcon c24;
	private ImageIcon c25;
	private ImageIcon c26;
	private ImageIcon c27;
	private ImageIcon c28;
	private ImageIcon c29;
	private ImageIcon c30;
	private ImageIcon c31;
	private ImageIcon c32;
	private ImageIcon c33;
	private ImageIcon c34;
	private ImageIcon c35;
	private ImageIcon c36;
	private ImageIcon c37;
	private ImageIcon c38;
	private ImageIcon c39;
	private ImageIcon c40;
	private ImageIcon c41;
	private ImageIcon c42;
	private ImageIcon c43;
	private ImageIcon c44;
	private ImageIcon c45;
	private ImageIcon c46;
	private ImageIcon c47;
	private ImageIcon c48;
	private ImageIcon c49;
	private ImageIcon c50;
	private ImageIcon c51;
	private ImageIcon c52;
	private ImageIcon cback;
	
	//Ships
	private ImageIcon shipd1;
	private ImageIcon shipd2;
	private ImageIcon shipd3;
	private ImageIcon shipd4;
	private ImageIcon shipd5;
	private ImageIcon shipd6;
	private ImageIcon shipd7;
	private ImageIcon shipd8;
	private ImageIcon shipd9;
	
	private ImageIcon shipp1_1;
	private ImageIcon shipp1_2;
	private ImageIcon shipp1_3;
	private ImageIcon shipp1_4;
	private ImageIcon shipp1_5;
	private ImageIcon shipp1_6;
	private ImageIcon shipp1_7;
	private ImageIcon shipp1_8;
	private ImageIcon shipp1_9;
	
	private ImageIcon shipp2_1;
	private ImageIcon shipp2_2;
	private ImageIcon shipp2_3;
	private ImageIcon shipp2_4;
	private ImageIcon shipp2_5;
	private ImageIcon shipp2_6;
	private ImageIcon shipp2_7;
	private ImageIcon shipp2_8;
	private ImageIcon shipp2_9;
	
	private ImageIcon shipp3_1;
	private ImageIcon shipp3_2;
	private ImageIcon shipp3_3;
	private ImageIcon shipp3_4;
	private ImageIcon shipp3_5;
	private ImageIcon shipp3_6;
	private ImageIcon shipp3_7;
	private ImageIcon shipp3_8;
	private ImageIcon shipp3_9;
	
	private ImageIcon shipp4_1;
	private ImageIcon shipp4_2;
	private ImageIcon shipp4_3;
	private ImageIcon shipp4_4;
	private ImageIcon shipp4_5;
	private ImageIcon shipp4_6;
	private ImageIcon shipp4_7;
	private ImageIcon shipp4_8;
	private ImageIcon shipp4_9;
	
	//Heads
	private ImageIcon head1;
	private ImageIcon head2;
	private ImageIcon head3;
	private ImageIcon head4;
	private ImageIcon head5;
	private ImageIcon head6;
	private ImageIcon head7;
	private ImageIcon head8;
	private ImageIcon head9;
	private ImageIcon head10;
	private ImageIcon head11;
	private ImageIcon head12;
	private ImageIcon head13;
	private ImageIcon head14;
	private ImageIcon head15;
	private ImageIcon head16;
	
	//Win-Labels
	private ImageIcon dealerwins;
	private ImageIcon youwin;
	private ImageIcon draw;
	private ImageIcon outofstack;
	
	//Animations
	private ImageIcon bwalks;
	private ImageIcon bwalks_start;
	private ImageIcon byebye;
		
	private String link = DataMISC.LINKIMG;
	private String cardlink = DataMISC.LINKCARDS;
	
	public GraphicsBlackJack() {
	
	    //Lädt die Grafikumgebung
	    GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();
	    
	    //Liefert ein Array mit allen Screen-Devices (= Monitore)
	    GraphicsDevice[] devices = env.getScreenDevices();
	    
	    //die Anzhal der Monitore entspricht der Länge des Arrays
	    screens = devices.length;    
		
	    //Liest die Bildschirmauflösung aus
		dim = Toolkit.getDefaultToolkit().getScreenSize();
		
		//Setzt Variablen für die Breite und die Höhe eines Bildschirms
		dimX = ((int) dim.getWidth() / screens);
		dimY = (int) dim.getHeight();
		
		//Setzt einen Faktor für Skalierungen (Liegt die Höhe unter 900px, dann muss skaliert werden)
		resizefactor = ((double) dimY/900);
				
		//Falls dimY > 900 ist, dann bleibt der Faktor dennoch bei 1 (die maximal Größe des Spielfensters soll bei 1146*860 liegen)
		if (resizefactor > 1) {
			resizefactor = 1;
		//Ist dimY = 0 (weil die Auflösung nicht ermittelt werden konnte(?)), wird der Faktor auf 0,8 gesetzt	
		} else if (resizefactor == 0) {
			resizefactor = 0.8;
		}
		
		//Main Backgrounds
		bgdef = new ImageIcon(getClass().getResource(link + "bg_def_1146x860.jpg"));
		bgp1 = new ImageIcon(getClass().getResource(link + "bg_p1_1146x860.jpg"));
		bgp2 = new ImageIcon(getClass().getResource(link + "bg_p2_1146x860.jpg"));
		bgp3 = new ImageIcon(getClass().getResource(link + "bg_p3_1146x860.jpg"));
		bgp4 = new ImageIcon(getClass().getResource(link + "bg_p4_1146x860.jpg"));
		
		images_main.add(bgdef);
		images_main.add(bgp1);
		images_main.add(bgp2);
		images_main.add(bgp3);
		images_main.add(bgp4);
		
		mainbgs.add(bgp1);
		mainbgs.add(bgp2);
		mainbgs.add(bgp3);
		mainbgs.add(bgp4);
		
		//Dialog Backgrounds
		bgdialogdef = new ImageIcon(getClass().getResource(link + "bg_window400_300.jpg"));
		bgstart = new ImageIcon(getClass().getResource(link + "bg_window400_300_logo.jpg"));
		bgrules = new ImageIcon(getClass().getResource(link + "bg_window1000_850.jpg"));
		bgstartstack = new ImageIcon(getClass().getResource(link + "bg_window400_300_fee.jpg"));
		bgoutofstack = new ImageIcon(getClass().getResource(link + "bg_outofstack.jpg"));
		
		images_dialogs.add(bgdialogdef);
		images_dialogs.add(bgstart);
		images_dialogs.add(bgrules);
		images_dialogs.add(bgstartstack);
		images_dialogs.add(bgoutofstack);
		
		//Buttons MainView
		btnewcard = new ImageIcon(getClass().getResource(link + "button_newcard.png"));
		btdouble = new ImageIcon(getClass().getResource(link + "button_double.png"));
		btbet = new ImageIcon(getClass().getResource(link + "button_bet.png"));
		btstand = new ImageIcon(getClass().getResource(link + "button_stand.png"));
		btsplit = new ImageIcon(getClass().getResource(link + "button_split.png"));
		btdeal = new ImageIcon(getClass().getResource(link + "button_deal.png"));
		bthelp = new ImageIcon(getClass().getResource(link + "button_help.png"));
		btoptions = new ImageIcon(getClass().getResource(link + "button_options2.png"));
		
		images_main.add(btnewcard);
		images_main.add(btdouble);
		images_main.add(btbet);
		images_main.add(btstand);
		images_main.add(btsplit);
		images_main.add(btdeal);
		images_main.add(bthelp);
		
		//Buttons Dialogs
		btback = new ImageIcon(getClass().getResource(link + "button_back.png"));
		bt1 = new ImageIcon(getClass().getResource(link + "button_1.png"));
		bt2 = new ImageIcon(getClass().getResource(link + "button_2.png"));
		bt3 = new ImageIcon(getClass().getResource(link + "button_3.png"));
		bt4 = new ImageIcon(getClass().getResource(link + "button_4.png"));
		btplus1 = new ImageIcon(getClass().getResource(link + "button_plus1.png"));
		btplus10 = new ImageIcon(getClass().getResource(link + "button_plus10.png"));
		btplus100 = new ImageIcon(getClass().getResource(link + "button_plus100.png"));
		btminus1 = new ImageIcon(getClass().getResource(link + "button_minus1.png"));
		btminus10 = new ImageIcon(getClass().getResource(link + "button_minus10.png"));
		btminus100 = new ImageIcon(getClass().getResource(link + "button_minus100.png"));
		btmax = new ImageIcon(getClass().getResource(link + "button_max.png"));
		btmin = new ImageIcon(getClass().getResource(link + "button_min.png"));
		btok = new ImageIcon(getClass().getResource(link + "button_ok.png"));
		btgo = new ImageIcon(getClass().getResource(link + "button_goon.png"));
		btstartgame = new ImageIcon(getClass().getResource(link + "button_startgame.png"));
		btyes = new ImageIcon(getClass().getResource(link + "button_yes.png"));
		btno = new ImageIcon(getClass().getResource(link + "button_no.png"));
		btnexplayer = new ImageIcon(getClass().getResource(link + "button_nextplayer.png"));
		btnexround = new ImageIcon(getClass().getResource(link + "button_nextround.png"));
		btnewgame = new ImageIcon(getClass().getResource(link + "button_newgame.png"));
		btquitgame = new ImageIcon(getClass().getResource(link + "button_quitgame.png"));
		
		
		images_dialogs.add(btback);
		images_dialogs.add(bt1);
		images_dialogs.add(bt2);
		images_dialogs.add(bt3);
		images_dialogs.add(bt4);
		images_dialogs.add(btplus1);
		images_dialogs.add(btplus10);
		images_dialogs.add(btplus100);
		images_dialogs.add(btminus1);
		images_dialogs.add(btminus10);
		images_dialogs.add(btminus100);
		images_dialogs.add(btmax);
		images_dialogs.add(btmin);
		images_dialogs.add(btok);
		images_dialogs.add(btgo);
		images_dialogs.add(btstartgame);
		images_dialogs.add(btyes);
		images_dialogs.add(btno);
		images_dialogs.add(btnexplayer);
		images_dialogs.add(btnexround);
		images_dialogs.add(btnewgame);
		images_dialogs.add(btquitgame);
		
		//Cards
		c1  = new ImageIcon(getClass().getResource(cardlink + "1.png"));
		c2  = new ImageIcon(getClass().getResource(cardlink + "2.png"));
		c3  = new ImageIcon(getClass().getResource(cardlink + "3.png"));
		c4  = new ImageIcon(getClass().getResource(cardlink + "4.png"));
		c5  = new ImageIcon(getClass().getResource(cardlink + "5.png"));
		c6  = new ImageIcon(getClass().getResource(cardlink + "6.png"));
		c7  = new ImageIcon(getClass().getResource(cardlink + "7.png"));
		c8  = new ImageIcon(getClass().getResource(cardlink + "8.png"));
		c9  = new ImageIcon(getClass().getResource(cardlink + "9.png"));
		c10  = new ImageIcon(getClass().getResource(cardlink + "10.png"));
		c11  = new ImageIcon(getClass().getResource(cardlink + "11.png"));
		c12  = new ImageIcon(getClass().getResource(cardlink + "12.png"));
		c13  = new ImageIcon(getClass().getResource(cardlink + "13.png"));
		c14  = new ImageIcon(getClass().getResource(cardlink + "14.png"));
		c15  = new ImageIcon(getClass().getResource(cardlink + "15.png"));
		c16  = new ImageIcon(getClass().getResource(cardlink + "16.png"));
		c17  = new ImageIcon(getClass().getResource(cardlink + "17.png"));
		c18  = new ImageIcon(getClass().getResource(cardlink + "18.png"));
		c19  = new ImageIcon(getClass().getResource(cardlink + "19.png"));
		c20  = new ImageIcon(getClass().getResource(cardlink + "20.png"));
		c21  = new ImageIcon(getClass().getResource(cardlink + "21.png"));
		c22  = new ImageIcon(getClass().getResource(cardlink + "22.png"));
		c23  = new ImageIcon(getClass().getResource(cardlink + "23.png"));
		c24  = new ImageIcon(getClass().getResource(cardlink + "24.png"));
		c25  = new ImageIcon(getClass().getResource(cardlink + "25.png"));
		c26  = new ImageIcon(getClass().getResource(cardlink + "26.png"));
		c27  = new ImageIcon(getClass().getResource(cardlink + "27.png"));
		c28  = new ImageIcon(getClass().getResource(cardlink + "28.png"));
		c29  = new ImageIcon(getClass().getResource(cardlink + "29.png"));
		c30  = new ImageIcon(getClass().getResource(cardlink + "30.png"));
		c31  = new ImageIcon(getClass().getResource(cardlink + "31.png"));
		c32  = new ImageIcon(getClass().getResource(cardlink + "32.png"));
		c33  = new ImageIcon(getClass().getResource(cardlink + "33.png"));
		c34  = new ImageIcon(getClass().getResource(cardlink + "34.png"));
		c35  = new ImageIcon(getClass().getResource(cardlink + "35.png"));
		c36  = new ImageIcon(getClass().getResource(cardlink + "36.png"));
		c37  = new ImageIcon(getClass().getResource(cardlink + "37.png"));
		c38  = new ImageIcon(getClass().getResource(cardlink + "38.png"));
		c39  = new ImageIcon(getClass().getResource(cardlink + "39.png"));
		c40  = new ImageIcon(getClass().getResource(cardlink + "40.png"));
		c41  = new ImageIcon(getClass().getResource(cardlink + "41.png"));
		c42  = new ImageIcon(getClass().getResource(cardlink + "42.png"));
		c43  = new ImageIcon(getClass().getResource(cardlink + "43.png"));
		c44  = new ImageIcon(getClass().getResource(cardlink + "44.png"));
		c45  = new ImageIcon(getClass().getResource(cardlink + "45.png"));
		c46  = new ImageIcon(getClass().getResource(cardlink + "46.png"));
		c47  = new ImageIcon(getClass().getResource(cardlink + "47.png"));
		c48  = new ImageIcon(getClass().getResource(cardlink + "48.png"));
		c49  = new ImageIcon(getClass().getResource(cardlink + "49.png"));
		c50  = new ImageIcon(getClass().getResource(cardlink + "50.png"));
		c51  = new ImageIcon(getClass().getResource(cardlink + "51.png"));
		c52  = new ImageIcon(getClass().getResource(cardlink + "52.png"));
		cback  = new ImageIcon(getClass().getResource(cardlink + "b1fv.png"));
		
		cards.add(c1);
		cards.add(c2);
		cards.add(c3);
		cards.add(c4);
		cards.add(c5);
		cards.add(c6);
		cards.add(c7);
		cards.add(c8);
		cards.add(c9);
		cards.add(c10);
		cards.add(c11);
		cards.add(c12);
		cards.add(c13);
		cards.add(c14);
		cards.add(c15);
		cards.add(c16);
		cards.add(c17);
		cards.add(c18);
		cards.add(c19);
		cards.add(c20);
		cards.add(c21);
		cards.add(c22);
		cards.add(c23);
		cards.add(c24);
		cards.add(c25);
		cards.add(c26);
		cards.add(c27);
		cards.add(c28);
		cards.add(c29);
		cards.add(c30);
		cards.add(c31);
		cards.add(c32);
		cards.add(c33);
		cards.add(c34);
		cards.add(c35);
		cards.add(c36);
		cards.add(c37);
		cards.add(c38);
		cards.add(c39);
		cards.add(c40);
		cards.add(c41);
		cards.add(c42);
		cards.add(c43);
		cards.add(c44);
		cards.add(c45);
		cards.add(c46);
		cards.add(c47);
		cards.add(c48);
		cards.add(c49);
		cards.add(c50);
		cards.add(c51);
		cards.add(c52);
		
		images_main.add(cback);		
		
		//Ships
		shipd1 = new ImageIcon(getClass().getResource(link + "ship_dealer1.png"));
		shipd2 = new ImageIcon(getClass().getResource(link + "ship_dealer2.png"));
		shipd3 = new ImageIcon(getClass().getResource(link + "ship_dealer3.png"));
		shipd4 = new ImageIcon(getClass().getResource(link + "ship_dealer4.png"));
		shipd5 = new ImageIcon(getClass().getResource(link + "ship_dealer5.png"));
		shipd6 = new ImageIcon(getClass().getResource(link + "ship_dealer6.png"));
		shipd7 = new ImageIcon(getClass().getResource(link + "ship_dealer7.png"));
		shipd8 = new ImageIcon(getClass().getResource(link + "ship_dealer8.png"));
		shipd9 = new ImageIcon(getClass().getResource(link + "ship_dealer9.png"));
		
		images_main.add(shipd1);
		images_main.add(shipd2);
		images_main.add(shipd3);
		images_main.add(shipd4);
		images_main.add(shipd5);
		images_main.add(shipd6);
		images_main.add(shipd7);
		images_main.add(shipd8);
		images_main.add(shipd9);
		
		shipp1_1 = new ImageIcon(getClass().getResource(link + "ship_p1_1.png"));
		shipp1_2 = new ImageIcon(getClass().getResource(link + "ship_p1_2.png"));
		shipp1_3 = new ImageIcon(getClass().getResource(link + "ship_p1_3.png"));
		shipp1_4 = new ImageIcon(getClass().getResource(link + "ship_p1_4.png"));
		shipp1_5 = new ImageIcon(getClass().getResource(link + "ship_p1_5.png"));
		shipp1_6 = new ImageIcon(getClass().getResource(link + "ship_p1_6.png"));
		shipp1_7 = new ImageIcon(getClass().getResource(link + "ship_p1_7.png"));
		shipp1_8 = new ImageIcon(getClass().getResource(link + "ship_p1_8.png"));
		shipp1_9 = new ImageIcon(getClass().getResource(link + "ship_p1_9.png"));
		
		images_main.add(shipp1_1);
		images_main.add(shipp1_2);
		images_main.add(shipp1_3);
		images_main.add(shipp1_4);
		images_main.add(shipp1_5);
		images_main.add(shipp1_6);
		images_main.add(shipp1_7);
		images_main.add(shipp1_8);
		images_main.add(shipp1_9);
		
		shipp2_1 = new ImageIcon(getClass().getResource(link + "ship_p2_1.png"));
		shipp2_2 = new ImageIcon(getClass().getResource(link + "ship_p2_2.png"));
		shipp2_3 = new ImageIcon(getClass().getResource(link + "ship_p2_3.png"));
		shipp2_4 = new ImageIcon(getClass().getResource(link + "ship_p2_4.png"));
		shipp2_5 = new ImageIcon(getClass().getResource(link + "ship_p2_5.png"));
		shipp2_6 = new ImageIcon(getClass().getResource(link + "ship_p2_6.png"));
		shipp2_7 = new ImageIcon(getClass().getResource(link + "ship_p2_7.png"));
		shipp2_8 = new ImageIcon(getClass().getResource(link + "ship_p2_8.png"));
		shipp2_9 = new ImageIcon(getClass().getResource(link + "ship_p2_9.png"));
		
		images_main.add(shipp2_1);
		images_main.add(shipp2_2);
		images_main.add(shipp2_3);
		images_main.add(shipp2_4);
		images_main.add(shipp2_5);
		images_main.add(shipp2_6);
		images_main.add(shipp2_7);
		images_main.add(shipp2_8);
		images_main.add(shipp2_9);
		
		shipp3_1 = new ImageIcon(getClass().getResource(link + "ship_p3_1.png"));
		shipp3_2 = new ImageIcon(getClass().getResource(link + "ship_p3_2.png"));
		shipp3_3 = new ImageIcon(getClass().getResource(link + "ship_p3_3.png"));
		shipp3_4 = new ImageIcon(getClass().getResource(link + "ship_p3_4.png"));
		shipp3_5 = new ImageIcon(getClass().getResource(link + "ship_p3_5.png"));
		shipp3_6 = new ImageIcon(getClass().getResource(link + "ship_p3_6.png"));
		shipp3_7 = new ImageIcon(getClass().getResource(link + "ship_p3_7.png"));
		shipp3_8 = new ImageIcon(getClass().getResource(link + "ship_p3_8.png"));
		shipp3_9 = new ImageIcon(getClass().getResource(link + "ship_p3_9.png"));
		
		images_main.add(shipp3_1);
		images_main.add(shipp3_2);
		images_main.add(shipp3_3);
		images_main.add(shipp3_4);
		images_main.add(shipp3_5);
		images_main.add(shipp3_6);
		images_main.add(shipp3_7);
		images_main.add(shipp3_8);
		images_main.add(shipp3_9);
		
		shipp4_1 = new ImageIcon(getClass().getResource(link + "ship_p4_1.png"));
		shipp4_2 = new ImageIcon(getClass().getResource(link + "ship_p4_2.png"));
		shipp4_3 = new ImageIcon(getClass().getResource(link + "ship_p4_3.png"));
		shipp4_4 = new ImageIcon(getClass().getResource(link + "ship_p4_4.png"));
		shipp4_5 = new ImageIcon(getClass().getResource(link + "ship_p4_5.png"));
		shipp4_6 = new ImageIcon(getClass().getResource(link + "ship_p4_6.png"));
		shipp4_7 = new ImageIcon(getClass().getResource(link + "ship_p4_7.png"));
		shipp4_8 = new ImageIcon(getClass().getResource(link + "ship_p4_8.png"));
		shipp4_9 = new ImageIcon(getClass().getResource(link + "ship_p4_9.png"));
		
		images_main.add(shipp4_1);
		images_main.add(shipp4_2);
		images_main.add(shipp4_3);
		images_main.add(shipp4_4);
		images_main.add(shipp4_5);
		images_main.add(shipp4_6);
		images_main.add(shipp4_7);
		images_main.add(shipp4_8);
		images_main.add(shipp4_9);
		
		//Heads
		head1 = new ImageIcon(getClass().getResource(link + "head1.png"));
		head2 = new ImageIcon(getClass().getResource(link + "head2.png"));
		head3 = new ImageIcon(getClass().getResource(link + "head3.png"));
		head4 = new ImageIcon(getClass().getResource(link + "head4.png"));
		head5 = new ImageIcon(getClass().getResource(link + "head5.png"));
		head6 = new ImageIcon(getClass().getResource(link + "head6.png"));
		head7 = new ImageIcon(getClass().getResource(link + "head7.png"));
		head8 = new ImageIcon(getClass().getResource(link + "head8.png"));
		head9 = new ImageIcon(getClass().getResource(link + "head9.png"));
		head10 = new ImageIcon(getClass().getResource(link + "head10.png"));
		head11 = new ImageIcon(getClass().getResource(link + "head11.png"));
		head12 = new ImageIcon(getClass().getResource(link + "head12.png"));
		head13 = new ImageIcon(getClass().getResource(link + "head13.png"));
		head14 = new ImageIcon(getClass().getResource(link + "head14.png"));
		head15 = new ImageIcon(getClass().getResource(link + "head15.png"));
		head16 = new ImageIcon(getClass().getResource(link + "head16.png"));
		
		images_main.add(head1);
		images_main.add(head2);
		images_main.add(head3);
		images_main.add(head4);
		images_main.add(head5);
		images_main.add(head6);
		images_main.add(head7);
		images_main.add(head8);
		images_main.add(head9);
		images_main.add(head10);
		images_main.add(head11);
		images_main.add(head12);
		images_main.add(head13);
		images_main.add(head14);
		images_main.add(head15);
		images_main.add(head16);
		
		dealerwins = new ImageIcon(getClass().getResource(link + "dealerwins_rotate.png"));
		youwin = new ImageIcon(getClass().getResource(link + "youwin_rotate.png"));
		draw = new ImageIcon(getClass().getResource(link + "draw_rotate.png"));
		outofstack = new ImageIcon(getClass().getResource(link + "outofstack.png"));
		
		images_main.add(dealerwins);
		images_main.add(youwin);
		images_main.add(draw);
		images_main.add(outofstack);
		
		bwalks = new ImageIcon(getClass().getResource(link + "bender_walks.gif"));
		bwalks_start = new ImageIcon(getClass().getResource(link + "bender_walks_start.gif"));
		byebye = new ImageIcon(getClass().getResource(link + "byebye.gif"));

		images_dialogs.add(bwalks);
		images_dialogs.add(bwalks_start);
		//TODO das GIF darf nicht mit skaliert werden. -> Mehrere Größen erstellen?
		//images_main.add(byebye);
	}	
		
	public void scaleImgs() {
		//Skaliert die Bilder der MainView
		for (ImageIcon image:images_main) {
			image.setImage(image.getImage().getScaledInstance(
					(int) Math.round(image.getIconWidth() * resizefactor),
					(int) Math.round(image.getIconHeight() * resizefactor),
					Image.SCALE_SMOOTH)
			);
		}
		
		//Skaliert die Bilder der Karten
		for (ImageIcon image:cards) {
			image.setImage(image.getImage().getScaledInstance(
					(int) Math.round(image.getIconWidth() * resizefactor),
					(int) Math.round(image.getIconHeight() * resizefactor),
					Image.SCALE_SMOOTH)
			);
		}
	}		
	
	public Dimension getDim() {
		return dim;
	}
	public void setDim(Dimension dim) {
		this.dim = dim;
	}
	public int getDimX() {
		return dimX;
	}
	public void setDimX(int dimX) {
		this.dimX = dimX;
	}
	public int getDimY() {
		return dimY;
	}
	public void setDimY(int dimY) {
		this.dimY = dimY;
	}
	public double getResizefactor() {
		return resizefactor;
	}
	public void setResizefactor(double resizefactor) {
		this.resizefactor = resizefactor;
	}
	public ImageIcon getBgdef() {
		return bgdef;
	}
	public void setBgdef(ImageIcon bgdef) {
		this.bgdef = bgdef;
	}
	public ImageIcon getBgp1() {
		return bgp1;
	}
	public void setBgp1(ImageIcon bgp1) {
		this.bgp1 = bgp1;
	}
	public ImageIcon getBgp2() {
		return bgp2;
	}
	public void setBgp2(ImageIcon bgp2) {
		this.bgp2 = bgp2;
	}
	public ImageIcon getBgp3() {
		return bgp3;
	}
	public void setBgp3(ImageIcon bgp3) {
		this.bgp3 = bgp3;
	}
	public ImageIcon getBgp4() {
		return bgp4;
	}
	public void setBgp4(ImageIcon bgp4) {
		this.bgp4 = bgp4;
	}
	public ImageIcon getBgdialogdef() {
		return bgdialogdef;
	}
	public void setBgdialogdef(ImageIcon bgdialogdef) {
		this.bgdialogdef = bgdialogdef;
	}
	public ImageIcon getBgstart() {
		return bgstart;
	}
	public void setBgstart(ImageIcon bgstart) {
		this.bgstart = bgstart;
	}
	public ImageIcon getBgrules() {
		return bgrules;
	}
	public void setBgrules(ImageIcon bgrules) {
		this.bgrules = bgrules;
	}
	public ImageIcon getBgstartstack() {
		return bgstartstack;
	}
	public void setBgstartstack(ImageIcon bgstartstack) {
		this.bgstartstack = bgstartstack;
	}
	public ImageIcon getBgoutofstack() {
		return bgoutofstack;
	}
	public void setBgoutofstack(ImageIcon bgoutofstack) {
		this.bgoutofstack = bgoutofstack;
	}
	public ImageIcon getBtnewcard() {
		return btnewcard;
	}
	public void setBtnewcard(ImageIcon btnewcard) {
		this.btnewcard = btnewcard;
	}
	public ImageIcon getBtdouble() {
		return btdouble;
	}
	public void setBtdouble(ImageIcon btdouble) {
		this.btdouble = btdouble;
	}
	public ImageIcon getBtbet() {
		return btbet;
	}
	public void setBtbet(ImageIcon btbet) {
		this.btbet = btbet;
	}
	public ImageIcon getBtstand() {
		return btstand;
	}
	public void setBtstand(ImageIcon btstand) {
		this.btstand = btstand;
	}
	public ImageIcon getBtsplit() {
		return btsplit;
	}
	public void setBtsplit(ImageIcon btsplit) {
		this.btsplit = btsplit;
	}
	public ImageIcon getBtdeal() {
		return btdeal;
	}
	public void setBtdeal(ImageIcon btdeal) {
		this.btdeal = btdeal;
	}
	public ImageIcon getBthelp() {
		return bthelp;
	}
	public void setBthelp(ImageIcon bthelp) {
		this.bthelp = bthelp;
	}
	public ImageIcon getBtoptions() {
		return btoptions;
	}
	public void setBtoptions(ImageIcon btoptions) {
		this.btoptions = btoptions;
	}
	public ImageIcon getBtback() {
		return btback;
	}
	public void setBtback(ImageIcon btback) {
		this.btback = btback;
	}
	public ImageIcon getBt1() {
		return bt1;
	}
	public void setBt1(ImageIcon bt1) {
		this.bt1 = bt1;
	}
	public ImageIcon getBt2() {
		return bt2;
	}
	public void setBt2(ImageIcon bt2) {
		this.bt2 = bt2;
	}
	public ImageIcon getBt3() {
		return bt3;
	}
	public void setBt3(ImageIcon bt3) {
		this.bt3 = bt3;
	}
	public ImageIcon getBt4() {
		return bt4;
	}
	public void setBt4(ImageIcon bt4) {
		this.bt4 = bt4;
	}
	public ImageIcon getBtplus1() {
		return btplus1;
	}
	public void setBtplus1(ImageIcon btplus1) {
		this.btplus1 = btplus1;
	}
	public ImageIcon getBtplus10() {
		return btplus10;
	}
	public void setBtplus10(ImageIcon btplus10) {
		this.btplus10 = btplus10;
	}
	public ImageIcon getBtplus100() {
		return btplus100;
	}
	public void setBtplus100(ImageIcon btplus100) {
		this.btplus100 = btplus100;
	}
	public ImageIcon getBtminus1() {
		return btminus1;
	}
	public void setBtminus1(ImageIcon btminus1) {
		this.btminus1 = btminus1;
	}
	public ImageIcon getBtminus10() {
		return btminus10;
	}
	public void setBtminus10(ImageIcon btminus10) {
		this.btminus10 = btminus10;
	}
	public ImageIcon getBtminus100() {
		return btminus100;
	}
	public void setBtminus100(ImageIcon btminus100) {
		this.btminus100 = btminus100;
	}
	public ImageIcon getBtmax() {
		return btmax;
	}
	public void setBtmax(ImageIcon btmax) {
		this.btmax = btmax;
	}
	public ImageIcon getBtmin() {
		return btmin;
	}
	public void setBtmin(ImageIcon btmin) {
		this.btmin = btmin;
	}
	public ImageIcon getBtok() {
		return btok;
	}
	public void setBtok(ImageIcon btok) {
		this.btok = btok;
	}
	public ImageIcon getBtgo() {
		return btgo;
	}
	public void setBtgo(ImageIcon btgo) {
		this.btgo = btgo;
	}
	public ImageIcon getBtstartgame() {
		return btstartgame;
	}
	public void setBtstartgame(ImageIcon btstartgame) {
		this.btstartgame = btstartgame;
	}
	public ImageIcon getBtyes() {
		return btyes;
	}
	public void setBtyes(ImageIcon btyes) {
		this.btyes = btyes;
	}
	public ImageIcon getBtno() {
		return btno;
	}
	public void setBtno(ImageIcon btno) {
		this.btno = btno;
	}
	public ImageIcon getBtnexplayer() {
		return btnexplayer;
	}
	public void setBtnexplayer(ImageIcon btnexplayer) {
		this.btnexplayer = btnexplayer;
	}
	public ImageIcon getBtnexround() {
		return btnexround;
	}
	public void setBtnexround(ImageIcon btnexround) {
		this.btnexround = btnexround;
	}
	public ImageIcon getBtnewgame() {
		return btnewgame;
	}
	public void setBtnewgame(ImageIcon btnewgame) {
		this.btnewgame = btnewgame;
	}
	public ImageIcon getBtquitgame() {
		return btquitgame;
	}
	public void setBtquitgame(ImageIcon btquitgame) {
		this.btquitgame = btquitgame;
	}
	public ImageIcon getC1() {
		return c1;
	}
	public void setC1(ImageIcon c1) {
		this.c1 = c1;
	}
	public ImageIcon getC2() {
		return c2;
	}
	public void setC2(ImageIcon c2) {
		this.c2 = c2;
	}
	public ImageIcon getC3() {
		return c3;
	}
	public void setC3(ImageIcon c3) {
		this.c3 = c3;
	}
	public ImageIcon getC4() {
		return c4;
	}
	public void setC4(ImageIcon c4) {
		this.c4 = c4;
	}
	public ImageIcon getC5() {
		return c5;
	}
	public void setC5(ImageIcon c5) {
		this.c5 = c5;
	}
	public ImageIcon getC6() {
		return c6;
	}
	public void setC6(ImageIcon c6) {
		this.c6 = c6;
	}
	public ImageIcon getC7() {
		return c7;
	}
	public void setC7(ImageIcon c7) {
		this.c7 = c7;
	}
	public ImageIcon getC8() {
		return c8;
	}
	public void setC8(ImageIcon c8) {
		this.c8 = c8;
	}
	public ImageIcon getC9() {
		return c9;
	}
	public void setC9(ImageIcon c9) {
		this.c9 = c9;
	}
	public ImageIcon getC10() {
		return c10;
	}
	public void setC10(ImageIcon c10) {
		this.c10 = c10;
	}
	public ImageIcon getC11() {
		return c11;
	}
	public void setC11(ImageIcon c11) {
		this.c11 = c11;
	}
	public ImageIcon getC12() {
		return c12;
	}
	public void setC12(ImageIcon c12) {
		this.c12 = c12;
	}
	public ImageIcon getC13() {
		return c13;
	}
	public void setC13(ImageIcon c13) {
		this.c13 = c13;
	}
	public ImageIcon getC14() {
		return c14;
	}
	public void setC14(ImageIcon c14) {
		this.c14 = c14;
	}
	public ImageIcon getC15() {
		return c15;
	}
	public void setC15(ImageIcon c15) {
		this.c15 = c15;
	}
	public ImageIcon getC16() {
		return c16;
	}
	public void setC16(ImageIcon c16) {
		this.c16 = c16;
	}
	public ImageIcon getC17() {
		return c17;
	}
	public void setC17(ImageIcon c17) {
		this.c17 = c17;
	}
	public ImageIcon getC18() {
		return c18;
	}
	public void setC18(ImageIcon c18) {
		this.c18 = c18;
	}
	public ImageIcon getC19() {
		return c19;
	}
	public void setC19(ImageIcon c19) {
		this.c19 = c19;
	}
	public ImageIcon getC20() {
		return c20;
	}
	public void setC20(ImageIcon c20) {
		this.c20 = c20;
	}
	public ImageIcon getC21() {
		return c21;
	}
	public void setC21(ImageIcon c21) {
		this.c21 = c21;
	}
	public ImageIcon getC22() {
		return c22;
	}
	public void setC22(ImageIcon c22) {
		this.c22 = c22;
	}
	public ImageIcon getC23() {
		return c23;
	}
	public void setC23(ImageIcon c23) {
		this.c23 = c23;
	}
	public ImageIcon getC24() {
		return c24;
	}
	public void setC24(ImageIcon c24) {
		this.c24 = c24;
	}
	public ImageIcon getC25() {
		return c25;
	}
	public void setC25(ImageIcon c25) {
		this.c25 = c25;
	}
	public ImageIcon getC26() {
		return c26;
	}
	public void setC26(ImageIcon c26) {
		this.c26 = c26;
	}
	public ImageIcon getC27() {
		return c27;
	}
	public void setC27(ImageIcon c27) {
		this.c27 = c27;
	}
	public ImageIcon getC28() {
		return c28;
	}
	public void setC28(ImageIcon c28) {
		this.c28 = c28;
	}
	public ImageIcon getC29() {
		return c29;
	}
	public void setC29(ImageIcon c29) {
		this.c29 = c29;
	}
	public ImageIcon getC30() {
		return c30;
	}
	public void setC30(ImageIcon c30) {
		this.c30 = c30;
	}
	public ImageIcon getC31() {
		return c31;
	}
	public void setC31(ImageIcon c31) {
		this.c31 = c31;
	}
	public ImageIcon getC32() {
		return c32;
	}
	public void setC32(ImageIcon c32) {
		this.c32 = c32;
	}
	public ImageIcon getC33() {
		return c33;
	}
	public void setC33(ImageIcon c33) {
		this.c33 = c33;
	}
	public ImageIcon getC34() {
		return c34;
	}
	public void setC34(ImageIcon c34) {
		this.c34 = c34;
	}
	public ImageIcon getC35() {
		return c35;
	}
	public void setC35(ImageIcon c35) {
		this.c35 = c35;
	}
	public ImageIcon getC36() {
		return c36;
	}
	public void setC36(ImageIcon c36) {
		this.c36 = c36;
	}
	public ImageIcon getC37() {
		return c37;
	}
	public void setC37(ImageIcon c37) {
		this.c37 = c37;
	}
	public ImageIcon getC38() {
		return c38;
	}
	public void setC38(ImageIcon c38) {
		this.c38 = c38;
	}
	public ImageIcon getC39() {
		return c39;
	}
	public void setC39(ImageIcon c39) {
		this.c39 = c39;
	}
	public ImageIcon getC40() {
		return c40;
	}
	public void setC40(ImageIcon c40) {
		this.c40 = c40;
	}
	public ImageIcon getC41() {
		return c41;
	}
	public void setC41(ImageIcon c41) {
		this.c41 = c41;
	}
	public ImageIcon getC42() {
		return c42;
	}
	public void setC42(ImageIcon c42) {
		this.c42 = c42;
	}
	public ImageIcon getC43() {
		return c43;
	}
	public void setC43(ImageIcon c43) {
		this.c43 = c43;
	}
	public ImageIcon getC44() {
		return c44;
	}
	public void setC44(ImageIcon c44) {
		this.c44 = c44;
	}
	public ImageIcon getC45() {
		return c45;
	}
	public void setC45(ImageIcon c45) {
		this.c45 = c45;
	}
	public ImageIcon getC46() {
		return c46;
	}
	public void setC46(ImageIcon c46) {
		this.c46 = c46;
	}
	public ImageIcon getC47() {
		return c47;
	}
	public void setC47(ImageIcon c47) {
		this.c47 = c47;
	}
	public ImageIcon getC48() {
		return c48;
	}
	public void setC48(ImageIcon c48) {
		this.c48 = c48;
	}
	public ImageIcon getC49() {
		return c49;
	}
	public void setC49(ImageIcon c49) {
		this.c49 = c49;
	}
	public ImageIcon getC50() {
		return c50;
	}
	public void setC50(ImageIcon c50) {
		this.c50 = c50;
	}
	public ImageIcon getC51() {
		return c51;
	}
	public void setC51(ImageIcon c51) {
		this.c51 = c51;
	}
	public ImageIcon getC52() {
		return c52;
	}
	public void setC52(ImageIcon c52) {
		this.c52 = c52;
	}
	public ImageIcon getCback() {
		return cback;
	}
	public void setCback(ImageIcon cback) {
		this.cback = cback;
	}
	public ImageIcon getShipd1() {
		return shipd1;
	}
	public void setShipd1(ImageIcon shipd1) {
		this.shipd1 = shipd1;
	}
	public ImageIcon getShipd2() {
		return shipd2;
	}
	public void setShipd2(ImageIcon shipd2) {
		this.shipd2 = shipd2;
	}
	public ImageIcon getShipd3() {
		return shipd3;
	}
	public void setShipd3(ImageIcon shipd3) {
		this.shipd3 = shipd3;
	}
	public ImageIcon getShipd4() {
		return shipd4;
	}
	public void setShipd4(ImageIcon shipd4) {
		this.shipd4 = shipd4;
	}
	public ImageIcon getShipd5() {
		return shipd5;
	}
	public void setShipd5(ImageIcon shipd5) {
		this.shipd5 = shipd5;
	}
	public ImageIcon getShipd6() {
		return shipd6;
	}
	public void setShipd6(ImageIcon shipd6) {
		this.shipd6 = shipd6;
	}
	public ImageIcon getShipd7() {
		return shipd7;
	}
	public void setShipd7(ImageIcon shipd7) {
		this.shipd7 = shipd7;
	}
	public ImageIcon getShipd8() {
		return shipd8;
	}
	public void setShipd8(ImageIcon shipd8) {
		this.shipd8 = shipd8;
	}
	public ImageIcon getShipd9() {
		return shipd9;
	}
	public void setShipd9(ImageIcon shipd9) {
		this.shipd9 = shipd9;
	}
	public ImageIcon getShipp1_1() {
		return shipp1_1;
	}
	public void setShipp1_1(ImageIcon shipp1_1) {
		this.shipp1_1 = shipp1_1;
	}
	public ImageIcon getShipp1_2() {
		return shipp1_2;
	}
	public void setShipp1_2(ImageIcon shipp1_2) {
		this.shipp1_2 = shipp1_2;
	}
	public ImageIcon getShipp1_3() {
		return shipp1_3;
	}
	public void setShipp1_3(ImageIcon shipp1_3) {
		this.shipp1_3 = shipp1_3;
	}
	public ImageIcon getShipp1_4() {
		return shipp1_4;
	}
	public void setShipp1_4(ImageIcon shipp1_4) {
		this.shipp1_4 = shipp1_4;
	}
	public ImageIcon getShipp1_5() {
		return shipp1_5;
	}
	public void setShipp1_5(ImageIcon shipp1_5) {
		this.shipp1_5 = shipp1_5;
	}
	public ImageIcon getShipp1_6() {
		return shipp1_6;
	}
	public void setShipp1_6(ImageIcon shipp1_6) {
		this.shipp1_6 = shipp1_6;
	}
	public ImageIcon getShipp1_7() {
		return shipp1_7;
	}
	public void setShipp1_7(ImageIcon shipp1_7) {
		this.shipp1_7 = shipp1_7;
	}
	public ImageIcon getShipp1_8() {
		return shipp1_8;
	}
	public void setShipp1_8(ImageIcon shipp1_8) {
		this.shipp1_8 = shipp1_8;
	}
	public ImageIcon getShipp1_9() {
		return shipp1_9;
	}
	public void setShipp1_9(ImageIcon shipp1_9) {
		this.shipp1_9 = shipp1_9;
	}
	public ImageIcon getShipp2_1() {
		return shipp2_1;
	}
	public void setShipp2_1(ImageIcon shipp2_1) {
		this.shipp2_1 = shipp2_1;
	}
	public ImageIcon getShipp2_2() {
		return shipp2_2;
	}
	public void setShipp2_2(ImageIcon shipp2_2) {
		this.shipp2_2 = shipp2_2;
	}
	public ImageIcon getShipp2_3() {
		return shipp2_3;
	}
	public void setShipp2_3(ImageIcon shipp2_3) {
		this.shipp2_3 = shipp2_3;
	}
	public ImageIcon getShipp2_4() {
		return shipp2_4;
	}
	public void setShipp2_4(ImageIcon shipp2_4) {
		this.shipp2_4 = shipp2_4;
	}
	public ImageIcon getShipp2_5() {
		return shipp2_5;
	}
	public void setShipp2_5(ImageIcon shipp2_5) {
		this.shipp2_5 = shipp2_5;
	}
	public ImageIcon getShipp2_6() {
		return shipp2_6;
	}
	public void setShipp2_6(ImageIcon shipp2_6) {
		this.shipp2_6 = shipp2_6;
	}
	public ImageIcon getShipp2_7() {
		return shipp2_7;
	}
	public void setShipp2_7(ImageIcon shipp2_7) {
		this.shipp2_7 = shipp2_7;
	}
	public ImageIcon getShipp2_8() {
		return shipp2_8;
	}
	public void setShipp2_8(ImageIcon shipp2_8) {
		this.shipp2_8 = shipp2_8;
	}
	public ImageIcon getShipp2_9() {
		return shipp2_9;
	}
	public void setShipp2_9(ImageIcon shipp2_9) {
		this.shipp2_9 = shipp2_9;
	}
	public ImageIcon getShipp3_1() {
		return shipp3_1;
	}
	public void setShipp3_1(ImageIcon shipp3_1) {
		this.shipp3_1 = shipp3_1;
	}
	public ImageIcon getShipp3_2() {
		return shipp3_2;
	}
	public void setShipp3_2(ImageIcon shipp3_2) {
		this.shipp3_2 = shipp3_2;
	}
	public ImageIcon getShipp3_3() {
		return shipp3_3;
	}
	public void setShipp3_3(ImageIcon shipp3_3) {
		this.shipp3_3 = shipp3_3;
	}
	public ImageIcon getShipp3_4() {
		return shipp3_4;
	}
	public void setShipp3_4(ImageIcon shipp3_4) {
		this.shipp3_4 = shipp3_4;
	}
	public ImageIcon getShipp3_5() {
		return shipp3_5;
	}
	public void setShipp3_5(ImageIcon shipp3_5) {
		this.shipp3_5 = shipp3_5;
	}
	public ImageIcon getShipp3_6() {
		return shipp3_6;
	}
	public void setShipp3_6(ImageIcon shipp3_6) {
		this.shipp3_6 = shipp3_6;
	}
	public ImageIcon getShipp3_7() {
		return shipp3_7;
	}
	public void setShipp3_7(ImageIcon shipp3_7) {
		this.shipp3_7 = shipp3_7;
	}
	public ImageIcon getShipp3_8() {
		return shipp3_8;
	}
	public void setShipp3_8(ImageIcon shipp3_8) {
		this.shipp3_8 = shipp3_8;
	}
	public ImageIcon getShipp3_9() {
		return shipp3_9;
	}
	public void setShipp3_9(ImageIcon shipp3_9) {
		this.shipp3_9 = shipp3_9;
	}
	public ImageIcon getShipp4_1() {
		return shipp4_1;
	}
	public void setShipp4_1(ImageIcon shipp4_1) {
		this.shipp4_1 = shipp4_1;
	}
	public ImageIcon getShipp4_2() {
		return shipp4_2;
	}
	public void setShipp4_2(ImageIcon shipp4_2) {
		this.shipp4_2 = shipp4_2;
	}
	public ImageIcon getShipp4_3() {
		return shipp4_3;
	}
	public void setShipp4_3(ImageIcon shipp4_3) {
		this.shipp4_3 = shipp4_3;
	}
	public ImageIcon getShipp4_4() {
		return shipp4_4;
	}
	public void setShipp4_4(ImageIcon shipp4_4) {
		this.shipp4_4 = shipp4_4;
	}
	public ImageIcon getShipp4_5() {
		return shipp4_5;
	}
	public void setShipp4_5(ImageIcon shipp4_5) {
		this.shipp4_5 = shipp4_5;
	}
	public ImageIcon getShipp4_6() {
		return shipp4_6;
	}
	public void setShipp4_6(ImageIcon shipp4_6) {
		this.shipp4_6 = shipp4_6;
	}
	public ImageIcon getShipp4_7() {
		return shipp4_7;
	}
	public void setShipp4_7(ImageIcon shipp4_7) {
		this.shipp4_7 = shipp4_7;
	}
	public ImageIcon getShipp4_8() {
		return shipp4_8;
	}
	public void setShipp4_8(ImageIcon shipp4_8) {
		this.shipp4_8 = shipp4_8;
	}
	public ImageIcon getShipp4_9() {
		return shipp4_9;
	}
	public void setShipp4_9(ImageIcon shipp4_9) {
		this.shipp4_9 = shipp4_9;
	}
	public ImageIcon getHead1() {
		return head1;
	}
	public void setHead1(ImageIcon head1) {
		this.head1 = head1;
	}
	public ImageIcon getHead2() {
		return head2;
	}
	public void setHead2(ImageIcon head2) {
		this.head2 = head2;
	}
	public ImageIcon getHead3() {
		return head3;
	}
	public void setHead3(ImageIcon head3) {
		this.head3 = head3;
	}
	public ImageIcon getHead4() {
		return head4;
	}
	public void setHead4(ImageIcon head4) {
		this.head4 = head4;
	}
	public ImageIcon getHead5() {
		return head5;
	}
	public void setHead5(ImageIcon head5) {
		this.head5 = head5;
	}
	public ImageIcon getHead6() {
		return head6;
	}
	public void setHead6(ImageIcon head6) {
		this.head6 = head6;
	}
	public ImageIcon getHead7() {
		return head7;
	}
	public void setHead7(ImageIcon head7) {
		this.head7 = head7;
	}
	public ImageIcon getHead8() {
		return head8;
	}
	public void setHead8(ImageIcon head8) {
		this.head8 = head8;
	}
	public ImageIcon getHead9() {
		return head9;
	}
	public void setHead9(ImageIcon head9) {
		this.head9 = head9;
	}
	public ImageIcon getHead10() {
		return head10;
	}
	public void setHead10(ImageIcon head10) {
		this.head10 = head10;
	}
	public ImageIcon getHead11() {
		return head11;
	}
	public void setHead11(ImageIcon head11) {
		this.head11 = head11;
	}
	public ImageIcon getHead12() {
		return head12;
	}
	public void setHead12(ImageIcon head12) {
		this.head12 = head12;
	}
	public ImageIcon getHead13() {
		return head13;
	}
	public void setHead13(ImageIcon head13) {
		this.head13 = head13;
	}
	public ImageIcon getHead14() {
		return head14;
	}
	public void setHead14(ImageIcon head14) {
		this.head14 = head14;
	}
	public ImageIcon getHead15() {
		return head15;
	}
	public void setHead15(ImageIcon head15) {
		this.head15 = head15;
	}
	public ImageIcon getHead16() {
		return head16;
	}
	public void setHead16(ImageIcon head16) {
		this.head16 = head16;
	}
	public List<ImageIcon> getImages() {
		return images_main;
	}
	public void setImages(List<ImageIcon> images) {
		this.images_main = images;
	}
	public List<ImageIcon> getMainbgs() {
		return mainbgs;
	}
	public void setMainbgs(List<ImageIcon> mainbgs) {
		this.mainbgs = mainbgs;
	}
	public List<ImageIcon> getCards() {
		return cards;
	}
	public void setCards(List<ImageIcon> cards) {
		this.cards = cards;
	}
	public ImageIcon getDealerwins() {
		return dealerwins;
	}
	public void setDealerwins(ImageIcon dealerwins) {
		this.dealerwins = dealerwins;
	}
	public ImageIcon getYouwin() {
		return youwin;
	}
	public void setYouwin(ImageIcon youwin) {
		this.youwin = youwin;
	}
	public ImageIcon getDraw() {
		return draw;
	}
	public void setDraw(ImageIcon draw) {
		this.draw = draw;
	}
	public ImageIcon getOutofstack() {
		return outofstack;
	}
	public void setOutofstack(ImageIcon outofstack) {
		this.outofstack = outofstack;
	}
	public ImageIcon getBwalks() {
		return bwalks;
	}
	public void setBwalks(ImageIcon bwalks) {
		this.bwalks = bwalks;
	}
	public ImageIcon getBwalks_start() {
		return bwalks_start;
	}
	public void setBwalks_start(ImageIcon bwalks_start) {
		this.bwalks_start = bwalks_start;
	}
	public ImageIcon getByebye() {
		return byebye;
	}
	public void setByebye(ImageIcon byebye) {
		this.byebye = byebye;
	}
}
